package top.xtcoder.jdcbase.base.vo.auth;

import java.util.ArrayList;
import java.util.List;

import javax.validation.constraints.NotBlank;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

@ApiModel("用户关联角色参数")
public class UserRoleRelaParam {
	@ApiModelProperty("用户id")
	@NotBlank(message = "用户id不能为空")
	private String userid;
	
	@ApiModelProperty("角色id组")
	private List<String> roleids;

	public String getUserid() {
		return userid;
	}

	public void setUserid(String userid) {
		this.userid = userid;
	}

	public List<String> getRoleids() {
		if(roleids == null) {
			roleids = new ArrayList();
		}
		return roleids;
	}

	public void setRoleids(List<String> roleids) {
		this.roleids = roleids;
	}
}
